package appnode;

import java.util.List;
import java.util.ArrayList;
import java.util.Date;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;
import javax.jdo.annotations.Element;
import appnode.Tablemsgs;

@PersistenceCapable
public class Messages {

@PrimaryKey
@Persistent(valueStrategy=IdGeneratorStrategy.IDENTITY)
private  Key key;

@Persistent
private String fromnode;

@Persistent
private String tonode;

@Persistent
private String subject;

@Persistent
private String content;

@Persistent
private Date createdday;

@Persistent
private Tablemsgs tablemsgs; 

public Messages(String fromnode, String tonode, String content, Date createdday) {
	this.fromnode = fromnode;
	this.tonode = tonode;
	this.subject = subject;
	this.content = content;
	this.createdday = createdday;
}

public Key getKey() {
	return key;
}

public String getFromnode() {
	return fromnode;
}

public String getTonode() {
	return tonode;
}

public String getSubject() {
	return subject;
}

public String getContent() {
	return content;
}

public Date getCreatedday() {
	return createdday;
}


public void setKey(Key key) {
	this.key = key;
}

public void setFromnode(String fromnode) {
	this.fromnode = fromnode;
}

public void setTonode(String tonode) {
	this.tonode = tonode;
}

public void setContent(String content) {
	this.content = content;
}

public void setCreatedday(Date createdday) {
	this.createdday = createdday;
}

}